<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\validate;

/**
 * 菜单验证器
 */
class WebSetting extends AdminBase
{
    
    // 验证规则
    protected $rule =   [
        
        'web_tittle'  => 'require',
        'buttom_text'  => 'require',
        'record_num'  => 'require',
        'buttom_text'  => 'require',
    ];

    // 验证提示
    protected $message  =   [
        
        'web_tittle.require'    => '网站标题不能为空',
        'buttom_text.require'    => '底部声明不能为空',
        'record_num.require'    => '备案号不能为空',
        'buttom_text.require'    => '备案链接不能为空',
       
    ];

    // 应用场景
    protected $scene = [
        'edit' =>  ['web_tittle', 'buttom_text'],
    ];
    
}
